/***
 * author: sailing
 * date: 2019/5/15
 * 订单管理
 * ***/
import * as types from "./mutation-types";
import actions from "./actions";
import state from "./state";
import getters from "./getters";
import { GetterTree, ActionTree, MutationTree } from "vuex";
const mutations: MutationTree<any> = {
  set_order(state, task) {
    console.log("state, task", state, task);
    state.order_list = task;
  },
  set_details(state, task) {
    console.log("state, task", state, task);
    state.order_details = task;
  },

  /*******设置 details ，单个订单详情********/
  set_signal_details(state, task) {
    console.log("设置 details:", state, task);
    state.details = task;
  }
};
const namespaced: boolean = true;
export default {
  namespaced,
  mutations,
  actions,
  state,
  getters
};
